<template>
	<view>
		<scroll-view class="ht-data" scroll-top="scrollX" scroll-y="true">
			<view class="datacard" v-for="item in array">
				<view class="first">
					<text class="express0" style="font-size: 35rpx;" v-if="item.tempretureValue<=37.2&&item.tempretureValue>=36.3">| 体温正常</text>
					<text class="express1" style="font-size: 35rpx;" v-else>| {{item.expres}}</text>
					<text class="time"  style="font-size: 27rpx;">{{item.createdAt}}</text>
				</view>
				<text class="number" style="font-size: 50rpx;">{{item.tempretureValue}}</text>
			</view>
		</scroll-view>
	</view>
</template>

<script>
	export default {
		props:['array'],
		name:"tempreture-card",
		data() {
			return {
				flag:true
			}
		}
	}
</script>

<style lang="scss">
	.ht-data{
	 
	 top:310px;
	 left: 0;
	 width: 375px;
	 .datacard{
		display: flex;
		flex-direction: column;
		justify-content: center;
		top: 10px;
		width: 100%;
		height: 70px;
		margin-bottom: 10px;
		background: #FFFFFF;
		.first{
			display: flex;
			flex-direction: row;
			justify-content: space-between;
			.express0{
				color: #00FF59;
				margin-top: 5px;
				margin-left: 10px;
				}
			.express1{
				color: #FF0000;			
				margin-top: 5px;
				margin-left: 10px;
			}
			.time{
				margin-right: 10px;
				margin-top: 7px;
				}
			}
		.number{
			margin-left: 40%;
		}
		}
	}

</style>